#ifndef _PLAY_H_
#define _PLAY_H_

#include "game.h"
#include "sprite.h"
#include "mario.h"
#include "brick.h"
#include "tube.h"
#include "cloud.h"
#include "mount.h"
#include "grass.h"
#include "castle.h"
#include "mush.h"
#include "turtle.h"
#include "objects.h"
#include "mushroom.h"
#include "star.h"
#include "coin.h"
#include "pieceBrick.h"
#include "QuadTree.h"
#include "flag.h"
#include "picture.h"

class CPlay : public CGame
{
public:
	CPlay(HINSTANCE hInstance, LPWSTR Name, int Mode, int IsFullScreen, int FrameRate);
	~CPlay();

	CMario * mario;

	LPD3DXSPRITE _SpriteHandler;

protected:

	void LoadMap(char *s);
	void NextLvl();
	virtual void RenderFrame(LPDIRECT3DDEVICE9 d3ddv, int Delta);
	virtual void ProcessInput(LPDIRECT3DDEVICE9 d3ddv, int Delta);
	virtual void LoadResources(LPDIRECT3DDEVICE9 d3ddv);
	virtual void OnKeyUp(int KeyCode);
	virtual void OnKeyDown(int KeyCode);
};
#endif